package jp.co.worksap.ate.gomoku.model;

public class GoPoint {
	private int x;
	private int y;
	private int nodeNum;
	public GoPoint(int x, int y) {
		this.x = x;
		this.y = y;
	}
	public int getX() {
		return x;
	}
	public int getY() {
		return y;
	}
	@Override
	public boolean equals(Object o) {
		if(!(o instanceof GoPoint)) {
			return false;
		}
		if(this == o) {
			return true;
		}
		GoPoint otherPoint = (GoPoint)o;
		return this.x == otherPoint.x && this.y == otherPoint.y;
	}
	public int getNodeNum() {
		return nodeNum;
	}
	public void setNodeNum(int nodeNum) {
		this.nodeNum = nodeNum;
	}
}
